package common;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * User: Guille
 * Date: 12/17/12
 * Time: 4:24 PM
 * To change this template use File | Settings | File Templates.
 */
public class IOHelper {

    public byte[] convertFileToBytes(File file) throws IOException {
        FileInputStream fis;
        byte[] content = null;
        fis = new FileInputStream(file);
        content = new byte[fis.available()];
        fis.read(content);
        fis.close();
        return content;
    }
}
